home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Startmenu Speed.xpl < prev    next >
Text File  |  1999-06-12  |  1KB  |  42 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Start menu\Options"
  5. "NAME"="Menu Reaction Speed"
  6. "VERSION"="1.2"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Delay (ms)"
  9. "DESCRIPTION 1"="Use this plug-in to change the reaction-time of the Start menu when you select an item."
  10. "DESCRIPTION 2"="The default value for this is 250 ms, the longest time is 65534 ms and the shortest possible value is 1 ms."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14.  
  15.  
  16. Sub Plugin_Initialize 
  17.  i=RegReadValue("HKCU\Control Panel\Desktop\MenuShowDelay")
  18.  SetUIElement 1,i
  19. End Sub
  20.  
  21. Sub Plugin_CheckData(ElementIndex)
  22.  i=GetUIElement(1)
  23.  if IsNumeric(i) then
  24.   if i<1 or i>65534 then
  25.    Call DataInvalid("The value you have entered is not valid.")
  26.   end if
  27.  else
  28.   Call DataInvalid("Please enter a valid numeric value.")
  29.  end if
  30.   
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  i=GetUIElement(1)
  35.  Call RegWriteValue("HKCU\Control Panel\Desktop\MenuShowDelay",i,1)
  36.  
  37.  Restart
  38. End Sub
  39.  
  40. Sub Plugin_Terminate 
  41. End Sub
  42.